#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n;
	scanf("%d", &n);
	int arr1[1000]={0}, arr2[1000] = {0};
	int g = 0;
	for (int i = 0; i < n; i++)
	{
		int sum = 0;
		scanf("%d", &arr1[i]);
		for (int j = 0; j < i; j++)
		{
			if (arr1[i] == arr2[j])
			{
				sum = 1;
				break;
			}
		}
		if (sum == 0)
		{
			arr2[g] = arr1[i];
			g++;
		}
	}
	for (int i = 0; i < g; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}